package com.just.fun.thread;

/**
 * 线程测试，梦开始的地方
 */
public class ThreadHello {
    public static void main(String[] args) {
        new ThreadA().start();
        new Thread(new ThreadB()).start();
    }
    static class ThreadA extends Thread{
        @Override
        public void run() {
            System.out.println("threadA hello world");
        }
    }

    static class ThreadB implements Runnable{

        @Override
        public void run() {
            System.out.println("threadB hello world");
        }
    }
}
